package com.adu.demo.service.Impl;

import java.util.List;
import com.adu.demo.domain.Dept;
import com.adu.demo.mapper.DeptMapper;
import com.adu.demo.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
                                            
@Service
public class DeptService implements IDeptService{
    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> getList(Dept dept){
        return deptMapper.getList(dept);
    }
    @Override
    public Dept getById(Long id){
        return deptMapper.getById(id);
    }
    @Override
    public int save(Dept dept){
        return deptMapper.save(dept);
    }
    @Override
    public int deleteById(Long id){
        return deptMapper.deleteById(id);
    }
    @Override
    public int deleteByIds(Long[] ids){
        return  deptMapper.deleteByIds(ids);
    }
    @Override
    public int update(Dept dept){
        return deptMapper.update(dept);
    }
}